<?php

namespace common\models\shop;

use Yii;

/**
 * This is the model class for table "{{%shop_spec_value}}".
 *
 * @property int $id
 * @property int $spec_id 规格ID
 * @property string $value 规格值
 */
class ShopSpecValue extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%shop_spec_value}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['spec_id'], 'integer'],
            [['value'], 'required'],
            [['value'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'spec_id' => '规格ID',
            'value' => '规格值',
        ];
    }

}
